package com.xintoucloud.pbs.service.impl;

import java.io.Serializable;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.xintoucloud.pbs.dao.RoleDao;
import com.xintoucloud.pbs.entity.Role;
import com.xintoucloud.pbs.service.RoleService;
@Service@Transactional
public class RoleServiceImpl implements RoleService{
	@Autowired
	private RoleDao roleDao;

	@Override
	public Serializable save(Role role) {
		return roleDao.save(role);
	}

	
	@Override
	public void update(Role role) {
		roleDao.update(role);
		
	}


	@Override
	public Role getOne(int id) {
		return roleDao.getOne(id);
	}


	@Override
	public void delete(int id) {
		roleDao.delete(id);
	}
}
